package org.budo.activiti.converter;

import org.activiti.bpmn.model.StartEvent;
import org.activiti.editor.language.json.converter.BpmnJsonConverter;

/**
 * @author lmw
 */
public class BudoActivitiBpmnJsonConverter extends BpmnJsonConverter {
    public BudoActivitiBpmnJsonConverter() {
        convertersToBpmnMap.put(STENCIL_EVENT_START_NONE, BudoStartEventJsonConverter.class);
        convertersToBpmnMap.put(STENCIL_EVENT_START_TIMER, BudoStartEventJsonConverter.class);
        convertersToBpmnMap.put(STENCIL_EVENT_START_ERROR, BudoStartEventJsonConverter.class);
        convertersToBpmnMap.put(STENCIL_EVENT_START_MESSAGE, BudoStartEventJsonConverter.class);
        convertersToBpmnMap.put(STENCIL_EVENT_START_SIGNAL, BudoStartEventJsonConverter.class);

        convertersToJsonMap.put(StartEvent.class, BudoStartEventJsonConverter.class);
    }
}